/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2024-02-24 00:32:28
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2024-03-03 11:55:26
 */
import request from '@/projects/shop/utils/request'

export function fetchList(data) {
  return request({
    url: '/officialaccount/menu/list',
    method: 'post',
    params: data
  })
}

export function createRow(data) {
  return request({
    url: '/officialaccount/menu/add',
    method: 'post',
    data
  })
}

export function updateRow(data) {
  return request({
    url: '/officialaccount/menu/edit',
    method: 'post',
    data
  })
}
export function deleteRow(data) {
  return request({
    url: '/officialaccount/menu/delete',
    method: 'post',
    params: data
  })
}

export function listTreeMenu() {
  return request({
    url: '/officialaccount/menu/list-tree-menu',
    method: 'post'
  })
}
export function validateData(data) {
  return request({
    url: '/officialaccount/menu/validateData',
    method: 'post',
    data
  })
}
export function syncAccountMenu(data) {
  return request({
    url: '/officialaccount/menu/syncAccountMenu',
    method: 'post',
    data
  })
}
